package myadmin.jtthink.com.Models;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;

@Data
public class AuthResponse implements IResponse{
    private Object data;
    private long pageNo;
    private long pageSize;
    private long totalCount;

    public AuthResponse(Object data, long pageNo, long pageSize, long totalCount) {
        this.data = data;
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.totalCount = totalCount;
    }

    public static AuthResponse build(Object data,long pageNo, long pageSize, long totalCount){
         return new AuthResponse(data,pageNo,pageSize,totalCount);
    }
}
